package com.cskaoyan.controller.wx;

import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.bean.po.MarketStorage;
import com.cskaoyan.controller.system.ObjectStorage;
import com.cskaoyan.service.wx.WxStorageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * @author jzp
 * @since 2022/11/23 09:58
 */
@RestController
@RequestMapping("wx/storage/")
public class WxStorage {
    @Autowired
    WxStorageService wxStorageService;

    @Autowired
    ObjectStorage objectStorage;
    @RequestMapping("upload")
    public BaseRespVo upload(MultipartFile file) throws IOException {
        return objectStorage.create(file);
    }
}
